package com.cjh.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName commodity_details
 */
@TableName(value ="commodity_details")
@Data
public class CommodityDetails implements Serializable {
    /**
     * 商品详情主键
     */
    @TableId(type = IdType.AUTO)
    private Integer commodityDetailsId;

    /**
     * 商品外键
     */
    private Integer commodity;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 销量
     */
    private Integer sales;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 成本价
     */
    private BigDecimal cost;

    /**
     * 简介
     */
    private String introduction;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}